package com.ruoyi.wechat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.wechat.domain.Order;
import com.ruoyi.wechat.domain.dto.OrderDTO;
import com.ruoyi.wechat.domain.form.PlaceForm;

import java.util.List;

/**
 * <p>
 * 订单接口
 * </p>
 *
 * @author YinHeng
 * @since 2024/2/6
 */
public interface IOrderService extends IService<Order> {

    /**
     * 商品下单
     *
     * @param form
     * @return
     */
    Order place(PlaceForm form);

    /**
     * 订单取消
     *
     * @param orderId
     * @return
     */
    void canCel(String orderId);

    /**
     * 订单查询
     *
     * @param form
     * @return
     */
    List<OrderDTO> searchList(Order form);

    /**
     * 订单详情
     *
     * @param form
     * @return
     */
    OrderDTO detail(Order form);


}
